package xyz.xmh.pattern.creational.builderpattern.abs;

import xyz.xmh.pattern.creational.builderpattern.inter.Item;
import xyz.xmh.pattern.creational.builderpattern.inter.Packing;
import xyz.xmh.pattern.creational.builderpattern.inter.impl.Wrapper;

/**
 * Burger
 * 汉堡包抽象类
 *
 * @author xuMingHai
 * @since 2021/4/29 星期四 11:07
 */
public abstract class Burger implements Item {
    @Override
    public Packing packing() {
        //包装方式使用包装纸来包装
        return new Wrapper();
    }

    /**
     * 价格设置为抽象类，各种汉堡的价格不一样
     *
     * @return 汉堡价格
     */
    @Override
    public abstract float price();
}
